<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('Retained/users')}">用户留存</a></li>
            <li><a href="{:U('Retained/devices')}">设备留存</a></li>
            <li class="active"><a>详细信息</a></li>
        </ul>
        <form class="well form-search js-ajax-form" method="post">
            <if condition="$count" >共查询到 {$count} 条数据</if>
        </form>
            <table class="table table-hover table-bordered" style="word-break:break-all;">
                <thead>
                    <tr>
                        <th>店铺名称/店铺地址</th>
                        <th>设备ID/条形码</th>
                        <th>major/minor</th>
                        <th>设备类型/设备状态</th>
                        <th width="120">更新时间/激活时间</th>
                    </tr>
                </thead>
                <foreach name="devices" item="vo">
                    <tr>
                        <td>
                        	<foreach name="stores" item="st">
								<if condition="$st['store_id'] eq $vo['store_id']" >
									<a href="{:U('Asset/Store/edit', array('id'=>$st['id']))}">{$st.title}({$st.title_branch})</a>
									 - {$stype[$st['stype']]['name']}
									<br>{$st.address}
								</if>
                           </foreach>
                        </td>
                        <td>{$vo.devid}<br>{$vo.barcode}</td>
                        <td>{$vo.major}<br>{$vo.minor}</td>
                        <td>{$vo.remark}<br>{$bstatus[$vo['status']]['name']}</td>
                        <td>{$vo.updatetime}<br>{$vo.livetime}</td>
                    </tr>
                </foreach>
                <thead>
                    <tr>
                        <th>店铺名称/店铺地址</th>
                        <th>设备ID/条形码</th>
                        <th>major/minor</th>
                        <th>设备类型/设备状态</th>
                        <th width="120">更新时间/激活时间</th>
                    </tr>
                </thead>
            </table>
            <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
